
<div style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;" id="PopBlockNotification">
  <div style="width: 760px;">
    <table align="center" border="0" cellpadding="3" cellspacing="0">
      <tbody><tr>
          <td>
            <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
          <td align="center">
            Your popup blocker stopped you from chatting with a member. <a href="javascript:void(0);" onclick="popNewICWindow();">click here</a> to open the window<br>
            <a href="#help//3#22">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
          </td>
          <td>
            <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif" alt="!">
          </td>
        </tr>
      </tbody></table>
  </div>
</div>


<div id="columnleft">
  <div id="connectlistarea">
    <div class="menulistarea">
      
      <div class="menufavorites menulistareaon color-main" id="menufavorites"> 
        <p>Messages</p>
        <div style="display:none;" class="bluestarburstfavorites" id="mainFavoriteCountStarBurst">

          <p><a class="color-white" id="mainFavoriteCount">0<span id="favoritePlus"></span></a></p>

        </div>

      </div>
      
    </div>
  </div>
  <div id="YesVoteContent" style="display:none;">
    Loading...
  </div>
  <div id="FavoriteContent" style="display:block;">
    


    <script>
              $jq(document).ready(function () {
    PeopleMedia.Connect.initFavorites('Sent');
      PeopleMedia.Connect.MutualFavoriteCount = 0;
      PeopleMedia.Connect.IncomingFavoriteCount = 0;
    });
    </script>    
    <div class="yescontent">
      
      <div class="yescontenttoprow">
        <p class="results"><span id="favoriteCount"><?php echo count($totalUserView);?> Results</span></p>
        <div id="paginationalone" class="color-main">
          <div id="paginationFavoritesTop">
            <?php echo $data['pagination']['html']; ?>
            
          </div>
        </div>
        <div class="toprowfloatright">
            <div class="listpagelinksarea">
                <div class="listpagelinksarea3 listpagelinksarea3on" onclick="PeopleMedia.Connect.goToFavoritesSent();" id="listFavoriteSent">
                    <p><a href="javascript:;">I Sented</a></p>

                </div>
                 
                     
                <div style="display:none;" id="favoriteincomingPopUp" class="tooltipwrapper">
                    <div class="tooltip" id="yestome">
                        <div onclick="PeopleMedia.Connect.hideFavoriteCountPopUp();" class="tooltipclose">
                            <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/mediumclosebtn.png');?>">
                        </div>
                        <div class="box shadow border-color-main">
                            <div class="tooltipleft color-icon">0</div>
                            <div class="tooltipright">members saved YOU as<br>a favorite. <span onclick="PeopleMedia.Connect.goToFavoritesReceived();" class="color-main">Find out who!</span></div>
                        </div>
                        <div class="arrowarea">
                            <img src="<?php echo app()->createAbsoluteUrl('www/images/images1/arrowdown_small.png');?>">
                        </div>
                    </div>
                </div>
                
              <div class="listpagelinksarea1  " onclick="PeopleMedia.Connect.goToFavoritesReceived();" id="listFavoriteReceived">
                <p><a href="javascript:;">Sented Me</a></p>
                  <p style="display:none" class="starlink" id="starburstFavoritesReceivedCount"><a id="listFavoritesReceivedCount" href="#">0</a> <span></span></p>
              </div>
            </div>
          </div>
      </div>
      <div class="yescontentmiddlerow" id="FavoritesListContent">
         <?php if(count($totalUserView)>0): ?>
        <div class="inboxcontenttoprow2">
          <div class="inboxcontenttoprow2col1">
            <input type="checkbox" onclick="PeopleMedia.Connect.selectAllDeleteCheckBoxes('Favorites')" value="" id="selectAllCheckBoxFavorites" name="">
            <p><a onclick="PeopleMedia.Connect.clickSelectArea('Favorites')" href="#">Select All</a></p>
          </div>
          <div class="inboxcontenttoprow2col2"> <a onclick="PeopleMedia.Connect.deleteSelectedMembers('Favorites', 1, <?php echo $data['filter']; ?>, 1);" href="#" class="button_style_send" title="Delete">Delete</a> </div>
        </div>
        <?php 
          else: echo $data['noRecord'];
          endif; 
        ?>
        <div id="connectFavoritesMemberList">
          <?php 
          $count = 0;
          foreach($rsUserView as $item):
          ?>
          <div class="profilerepeat " id="connectItem<?php echo $count;?>Favorites">
                         <div class="profilerepeatcol0">
                             <input type="checkbox" name="<?php echo $item['user_id'];?>" id="checkboxDelete<?php echo $count;?>Favorites" class="deleteCheckboxFavorites" value="" onchange="PeopleMedia.Connect.selectSingleDeleteCheckBox('Favorites', <?php echo $count;?>) ">
                         </div>
                     <div class="profilerepeatcol1">
                         
                          <div id="profileoverlayplace">
                            <div id="profileoverlay" style="">
                                
                                <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>"></a></p>
                            </div>
                        </div>
                             <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>" title="bbw538">
                               <?php 
                                  $link_img = FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif';
                                  if ($item['link_img'] != null) 
                                    $link_img = FRONT_SITE_URL. 'www/uploads/photos/thumbs/thumb_'. $item['link_img']; 
                                  else {
                                    $link_img = $item['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
                                  } 
                                ?>
                               <img border="0" src="<?php echo $link_img; ?>" title="<?php echo $item['username']; ?>" class="userpic"></a>
                         
                           
                     </div>
                    <div class="profilerepeatcol2">
                        <div class="profilerepeatcol2row1">
                            <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>"><?php echo $item['username']; ?></a></p>
                            <img title="Favorite" src="<?php echo app()->createAbsoluteUrl('www/images/images1/staricon.png');?>">
                            <p class="lightgraytext timestampcl">Messaged: <?php echo changedDateFormat($item['date_view'],'d-m-Y');?></p>
                        </div>
                        

                        <div class="profilerepeatcol2row2">

                            <p><?php echo calculateYearOld($item['birthdate']);?> | <?php echo $item['country_name']; ?> 
                                                                </p>
                        </div>

                        <div class="profilerepeatcol2row3">
                                <p><span class="lightgraytext">Message: </span>
                                <?php echo WordCut($item['text'],200,'...');?>
                                </p>
                                <p>
                                  <span class="lightgraytext">
                                    <a title="Send" onclick="PeopleMedia.Connect.showMessage('<?php echo $item['text'];?>')" href="javascript:void(0);">Show Message</a> 
                                  </span>
                                </p>
                        </div>

                        <div class="profilerepeatcol2row4">
                               
                                   
                            <a href="javascript:void(0);" class="SaveToFavorites<?php echo $count;?>Favorites" title="Save as Favorite" onclick="PeopleMedia.Connect.toggleFavorite(true, '<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Favorites','connectfavs', 'None')" style="<?php echo $item['user_favorited']!=null?'display:none':'display:inline'; ?>">
                                <img border="0" title="Save as Favorite" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteicon.png"> 
                            </a>
                                <a href="javascript:void(0);" class="RemoveFromFavorites<?php echo $count;?>Favorites" onclick="PeopleMedia.Connect.toggleFavorite(false, '<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Favorites', 'connectfavs')" title="Saved as Favorite" style="<?php echo $item['user_favorited']==null?'display:none':'display:inline'; ?>">
                                <img border="0" title="Saved as Favorite" src="http://pmi.peoplemedia.com/vc/1590203/21/images/icons/favoritedicon.png">   
                                </a>
                          
                            
                            <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id'];?>"> <img border="0" title="Send a Message" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/messageicon.png"> </a> 
                        </div>

                    </div>

                    <div class="profilerepeatcol3">
                        <textarea id="connectInlineMessage<?php echo $count;?>Favorites" class="connectWriteMessageTextArea" cols="" rows="">Write a quick message...</textarea>

                        <a href="javascript:void(0);" id="SendMessageButtonLink" onclick="PeopleMedia.Connect.sendMessage('<?php echo $item['user_id'];?>',<?php echo $count;?>,'Favorites','<?php echo $item['username'];?>',1,<?php echo $data['filter']; ?>,1,'connectfavs',23,'None');" class="button_style_send" title="Send">Send</a> </div>
                        <div class="profilerepeatcol4"> <a href="javascript:void(0);" onclick="PeopleMedia.Connect.removeItem(<?php echo $count;?>, 'Favorites','connectfavs')" title="Delete Favorite"><img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/hidebutton.png" class="hide1"></a> </div>
                    <p class="clearfix">&nbsp;</p>
                    <div class="popupshowblock" id="popupshowdelete<?php echo $count;?>Favorites" style="display:none;">
                        <div class="overlayplace">
                            <div class="popupshapestyle deleteactionoverlay">
                                <div class="largestclosebtn"> <a id="PopupBlockCloseButton" href="javascript:void(0);" title="Close" onclick="PeopleMedia.Connect.hideRemoveItemPopup( <?php echo $count;?>, 'Favorites')" class="closebtn"><img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/largestclosebtn.png"></a> </div>
                                <div class="blockcontent">
                                    <h1>Are you sure you want to delete <span id="PopupBlockUsernameSpan">this Favorite</span>?</h1>
                                    <div class="sharecontentbuttonarea">
                                        <p class="blocklinksbtn">
                                            <a href="javascript:void(0);" onclick="PeopleMedia.Connect.deleteConnectItem('<?php echo $item['user_id'];?>', <?php echo $count;?>, 'Favorites', 1, <?php echo $data['filter']; ?>, 1)">Delete</a>
                                            <a href="javascript:void(0);" onclick="PeopleMedia.Connect.hideRemoveItemPopup( <?php echo $count;?>, 'Favorites')" class="button_style">No</a>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="overlaywholescreen"></div>
                    </div>

                   
                    </div>
        <?php 
          $count++;
          endforeach; 
        ?>
        </div>

        <div class="resultsloadingoverlay" id="LoadingResultsDiv" style="display:none">
          <div class="resultsloading bgcolor-main">
            <h1>
              Sending your message...</h1>
            <div class="loadinggraphic">
              <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/waitwheel.gif" alt="">
            </div>
            <p class="clearfix">
              &nbsp;</p>
          </div>
        </div>

      </div>

      <div class="bottomrow">

        <div id="paginationsearch" class="color-main">
          <div id="paginationFavoritesBottom">
            <?php echo $data['pagination']['htmlBottom']; ?>
          </div>
        </div>

      </div>

    </div>        
  </div>
  <div id="ViewContent" style="display:none;">
    Loading...
  </div>

</div>


<p class="clearfix">&nbsp;</p>
<script>

      $jq(document).ready(function () {
        PeopleMedia.Connect = PeopleMedia.Connect || {};
        PeopleMedia.Connect.Actions =
            {
                AddFavoriteUrl: FRONT_SITE_URL+'ajax/Primary/SaveToFavorites',
                  RemoveFavoriteUrl: FRONT_SITE_URL+'ajax/Primary/Unfavorite',
                  SendBirthdayFlirtUrl: FRONT_SITE_URL+'ajax/Primary/SendBirthdayFlirt',
                  GetFavoriteUrl: FRONT_SITE_URL+'home/Inbox/GetFavorites',
                  GetViewUrl: FRONT_SITE_URL+'home/Inbox/GetViews',
                  GetYesVotesUrl: FRONT_SITE_URL+'home/Inbox/GetYesVotes',
                  SendMessageUrl: FRONT_SITE_URL+'ajax/Primary/SendMessage',
                  ReportConcernUrl: FRONT_SITE_URL+'ajax/Primary/ReportConcern',
                  LikePhotoUrl: FRONT_SITE_URL+'ajax/Primary/LikePhoto',
                  GetOneClickFlirtUrl: FRONT_SITE_URL+'ajax/Primary/SendOneClickFlirt',
                  GetMutualYesVoteUrl: FRONT_SITE_URL+'home/Inbox/GetMutualYesVotes',
                  GetSentYesVoteUrl: FRONT_SITE_URL+'home/Inbox/GetSentYesVotes',
                  GetReceivedYesVoteUrl: FRONT_SITE_URL+'home/Inbox/GetReceivedYesVotes',
                  GetMutualFavoriteUrl: FRONT_SITE_URL+'home/Inbox/GetMutualFavorites',
                  GetSentFavoriteUrl: FRONT_SITE_URL+'home/Inbox/GetSentFavorites',
                  GetReceivedFavoriteUrl: FRONT_SITE_URL+'home/Inbox/GetReceivedFavorites',
                  GetSentViewsUrl: FRONT_SITE_URL+'home/Inbox/GetSentViews',
                  GetReceivedViewsUrl: FRONT_SITE_URL+'home/Inbox/GetReceivedViews',
                  RefreshPaginationURL: FRONT_SITE_URL+'home/Inbox/RefreshPagination',
                  RefreshPageCountsUrl: FRONT_SITE_URL+'home/Inbox/RefreshPageCounts',
                  DeleteConnectItemUrl: FRONT_SITE_URL+'home/Inbox/DeleteConnectItem',
                  DeleteMultipleConnectItemsUrl: FRONT_SITE_URL+'home/Inbox/DeleteMultipleConnectItems'

                };
        });

    </script>